// @ts-ignore
/* eslint-disable */
import {request} from '@umijs/max';

/** addInterfaceInfo POST /api/interfaceInfo/add */
export async function addInterfaceInfoUsingPOST(
    body: API.InterfaceInfoAddRequest,
    options?: { [key: string]: any },
) {
    return request<API.BaseResponseLong_>('/api/interfaceInfo/add', {
        method: 'POST',
        headers: {
            'Content-Type': 'application/json',
        },
        data: body,
        ...(options || {}),
    });
}

/** buyInterfaceInfo POST /api/interfaceInfo/buy */
export async function buyInterfaceInfoUsingPOST(
    body: API.UpdateIdDTO,
    options?: { [p: string]: any },
) {
    return request<API.BaseResponseLong_>('/api/interfaceInfo/buy', {
        method: 'POST',
        headers: {
            'Content-Type': 'application/json',
        },
        data: body,
        ...(options || {}),
    });
}


/** deleteInterfaceInfo POST /api/interfaceInfo/delete */
export async function deleteInterfaceInfoUsingPOST(
    body: API.DeleteRequest,
    options?: { [key: string]: any },
) {
    return request<API.BaseResponseBoolean_>('/api/interfaceInfo/delete', {
        method: 'POST',
        headers: {
            'Content-Type': 'application/json',
        },
        data: body,
        ...(options || {}),
    });
}

/** getInterfaceInfoVOById POST /api/interfaceInfo/get/vo */
export async function getInterfaceInfoVOByIdUsingPOST(
    // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
    body: API.QueryIdDTO,
    options?: { [key: string]: any },
) {
    return request<API.BaseResponseInterfaceInfoVO_>('/api/interfaceInfo/get/vo', {
        method: 'POST',
        headers: {
            'Content-Type': 'application/json',
        },
        data: body,
        ...(options || {}),
    });
}

/** invokeInterfaceInfo POST /api/interfaceInfo/invoke */
export async function invokeInterfaceInfoUsingPOST(
    body: API.InterfaceInfoInvokeRequest,
    options?: { [key: string]: any },
) {
    return request<API.BaseResponseObject_>('/api/interfaceInfo/invoke', {
        method: 'POST',
        headers: {
            'Content-Type': 'application/json',
        },
        data: body,
        ...(options || {}),
    });
}

/** listInterfaceInfoVOByPage POST /api/interfaceInfo/list/page/vo */
export async function listInterfaceInfoVOByPageUsingPOST(
    body: API.InterfaceInfoQueryRequest,
    options?: { [key: string]: any },
) {
    return request<API.BaseResponsePageInterfaceInfoVO_>('/api/interfaceInfo/list/page/vo', {
        method: 'POST',
        headers: {
            'Content-Type': 'application/json',
        },
        data: body,
        ...(options || {}),
    });
}

/** listInterfaceInfoVOByUserIdPage POST /api/interfaceInfo/my/list/page/vo */
export async function listInterfaceInfoVOByUserIdPageUsingPOST(
    body: API.InterfaceInfoQueryRequest,
    options?: { [key: string]: any },
) {
    return request<API.BaseResponsePageInterfaceInfoVO_>('/api/interfaceInfo/my/list/page/vo', {
        method: 'POST',
        headers: {
            'Content-Type': 'application/json',
        },
        data: body,
        ...(options || {}),
    });
}

/** offlineInterfaceInfo POST /api/interfaceInfo/offline */
export async function offlineInterfaceInfoUsingPOST(
    body: API.IdRequest,
    options?: { [key: string]: any },
) {
    return request<API.BaseResponseBoolean_>('/api/interfaceInfo/offline', {
        method: 'POST',
        headers: {
            'Content-Type': 'application/json',
        },
        data: body,
        ...(options || {}),
    });
}

/** onlineInterfaceInfo POST /api/interfaceInfo/online */
export async function onlineInterfaceInfoUsingPOST(
    body: API.InterfaceInfoInvokeRequest,
    options?: { [key: string]: any },
) {
    return request<API.BaseResponseBoolean_>('/api/interfaceInfo/online', {
        method: 'POST',
        headers: {
            'Content-Type': 'application/json',
        },
        data: body,
        ...(options || {}),
    });
}

/** updateInterfaceInfo POST /api/interfaceInfo/update */
export async function updateInterfaceInfoUsingPOST(
    body: API.InterfaceInfoUpdateRequest,
    options?: { [key: string]: any },
) {
    return request<API.BaseResponseBoolean_>('/api/interfaceInfo/update', {
        method: 'POST',
        headers: {
            'Content-Type': 'application/json',
        },
        data: body,
        ...(options || {}),
    });
}
